<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Inicio extends CI_Controller {
     function __construct(){
        parent::__construct();
      }
      
      public function index(){
          $id_sucursal = $this->session->userdata('sucursal');
            if(!empty($id_sucursal)){
            redirect('front/index_poll');
            }else{
                $data['css'] = array('style/login_poll');
                $data_extra['error'] = $this->session->userdata('error');
                $data['content'] = $this->load->view('front/v_login_poll',$data_extra,TRUE);
                $this->load->view('template/template_poll',$data);
                 }
        }
}